package com.dj.common.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@TableName("tb_user")
@Data
@ExcelTarget("用户信息表")
public class UserVO implements Serializable {
   @TableId(type = IdType.AUTO) //默认随机生成
   private Long id;

   @Excel(name = "密码",orderNum = "0")
   private String password;

   @Excel(name = "姓名",orderNum = "1")
   private String name;

   @Excel(name = "年龄",orderNum = "2")
   private Integer age;

   @Excel(name = "邮箱",orderNum = "3")
   private String email;

   public UserVO(){

   }

   public UserVO(Long id, String password, String name, Integer age, String email) {
      this.id = id;
      this.password = password;
      this.name = name;
      this.age = age;
      this.email = email;
   }
}
